package com.kenai.jbosh;

import java.util.concurrent.TimeUnit;

final class AttrPause extends AbstractIntegerAttr
{
  private AttrPause(String paramString)
    throws BOSHException
  {
    super(paramString);
    checkMinValue(1);
  }

  static AttrPause createFromString(String paramString)
    throws BOSHException
  {
    AttrPause localAttrPause;
    if (paramString == null)
      localAttrPause = null;
    while (true)
    {
      return localAttrPause;
      localAttrPause = new AttrPause(paramString);
    }
  }

  public int getInMilliseconds()
  {
    return (int)TimeUnit.MILLISECONDS.convert(intValue(), TimeUnit.SECONDS);
  }
}